﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            NPC n = new NPC();
            PunchesWay p = new PunchesWay();
            Console.WriteLine("----------欢迎进入游戏世界----------");
            Console.WriteLine("**********************************");
            Console.WriteLine("**************猜拳，开始**********");
            Console.WriteLine("***********************8**********");
            Console.WriteLine("出拳规则：1.剪刀  2.石头  3.布");
            Console.WriteLine("请选择对方角色：<1：刘备 2：孙权 3：曹操>");
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    n.ComputerName = "刘备";
                    break;
            }
            Console.WriteLine("请输入您的姓名：");
            string str = Console.ReadLine();
            p.Name = str;

            Console.WriteLine(str + "vs" + n.ComputerName + "对战");
            Console.WriteLine("开始游戏吗？<y/n>");
            string a = Console.ReadLine();
            switch (a)
            {
                case "y":
                    a: Console.WriteLine("请出拳：1.石头 2.剪刀 3.布");
                    int num = int.Parse(Console.ReadLine());
                    bool flag = p.dc(n.ComputerName, num);
                    if (flag) goto a;


                    break;
                case "n":
                    Console.WriteLine("请出拳：1.石头 2.剪刀 3.布");

                    int key3 = int.Parse(Console.ReadLine());
                    break;
                
                case "2":
                    break;
                               

            }






        }



    }
}
